import React, { Component } from 'react'
import { connect } from 'react-redux'

export class About extends Component {
    componentDidMount() {
        this.props.init()
    }
    render() {
        const { list } = this.props
        return (
            <div>
                AboutAbout
                <div>
                    { list }
                </div>
            </div>
        )
    }
}

const mapStateToProps = (state) => {
    const { list } = state
    return {
        list
    }
}

const mapDispatchToProps = (dispatch) => {
    return {
        init() {
            dispatch({ type: "sagaInit"})
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(About)
